package com.fr.base.core.antlr;

import com.fr.base.core.antlr.collections.impl.Vector;

class BlockContext
{
  AlternativeBlock block;
  int altNum;
  BlockEndElement blockEnd;

  public void addAlternativeElement(AlternativeElement paramAlternativeElement)
  {
    currentAlt().addElement(paramAlternativeElement);
  }

  public Alternative currentAlt()
  {
    return ((Alternative)this.block.alternatives.elementAt(this.altNum));
  }

  public AlternativeElement currentElement()
  {
    return currentAlt().tail;
  }
}